package com.twitter.finatra.http.internal.request

import com.twitter.finagle.http.{ParamMap, Request, RequestProxy}

private[http] class RequestWithRouteParams(wrapped: Request, incomingParams: Map[String, String])
    extends RequestProxy {

  override lazy val params: ParamMap = {
    new RouteParamMap(super.params, incomingParams)
  }

  def request: Request = wrapped
}
